<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Default extends Controller 
{

	public function action_index()
	{
		if (Auth::instance()->logged_in()) 
		{
			$this->view = View::factory('default_logged');
		}
		else
		{
			$this->view = View::factory('default');
		}
		
		$this->view->render();
		
		$this->response->body($this->view);
		
	}

} // End Welcome
